package client.application;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import client.ClientView;

/*
 * Author : Mohamed Delhomme
 */

public class QuitAction extends AbstractAction {
	private ClientView client;
	
	public QuitAction(ClientView client, String texte) {
		super(texte);
		
		this.client = client;
	}

	public void actionPerformed(ActionEvent arg0) {
		client.checker.stop();
		System.exit(0);
	}

}
